# -*- coding: utf-8 -*-

greek_ch = [u'', u'α', u'β', u'γ', u'δ', u'ε', u'ζ', u'η', u'θ', 
            u'ι', u'κ', u'λ', u'μ', u'ν', u'ξ', u'ο', u'π', u'ρ', 
            u'σ', u'τ', u'υ', u'φ', u'χ', u'ψ', u'ω', 
            u'ά', u'έ', u'ί', u'ό', u'ύ', u'ή', u'ώ', u'ς', u'ϊ', u'ΰ', u'ϋ', u'ΐ' ]
greeklish_ch = ['','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o',
                'p','q','r','s','t','u','v','w','x','y','z',
                '1','2','3','4','5','6','7','8','9','0', ]
assert(len(greeklish_ch)==37)
greek_dipthongs    = [ u'αι',u'αί',u'άι',u'αϊ',
                       u'ει',u'εί',u'έι',u'εϊ',
                       u'οι',u'οί',u'όι',u'οϊ',
                       u'αυ',u'αύ',u'άυ',u'αϋ',
                       u'ευ',u'εύ',u'έυ',u'εϋ',
                       u'ου',u'όυ',u'ού',u'οϋ',
                       u'γγ',u'γκ',u'γξ',u'γχ',
                       u'μπ',u'ντ',]
phonemes_dipthongs = [ '[e]','[e]','[a][i]','[a][i]',
                       '[i]','[i]','[e][i]','[e][i]',
                       '[i]','[i]','[o][i]','[o][i]',
                       '[a][f]/[a][v]','[a][f]/[a][v]','[a][i]','[a][i]'
                       ,'[e][f]/[e][v]','[e][f]/[e][v]','[e][i]','[e][i]',
                       '[u]','[o][i]','[u]','[o][i]',
                       '[g]','[g]','[nks]','[nx]',
                       '[b]','[nt]',]
phonemes_ch = ['', '[a]', '[v]', '[gh]', '[d]', '[e]','[z]','[i]','[th]','[i]','[k]','[l]','[m]','[n]','[ks]','[o]','[p]','[r]','[s]','[t]','[i]','[f]','[x]','[ps]','[o]','[a]','[e]','[i]','[o]','[i]','[i]','[o]','[s]','[i]','[i]','[i]','[i]',]



assert(len(greek_ch)==len(phonemes_ch))



#for i in range(0,len(greek_ch)):
#    print ('%s  = %s' % (greek_ch[i], phonemes_ch[i]))

assert(len(greek_dipthongs)==len(phonemes_dipthongs))

#for i in range(0,len(greek_dipthongs)):
#    print ('%s  = %s' % (greek_dipthongs[i], phonemes_dipthongs[i]))

if __name__ == '__main__':
    print greek_ch[1].encode('utf-8')
    print len(greek_ch[1])
    print len(greek_dipthongs[1])#.encode('utf-8')